﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Forest.Core.Infrastructure;
using AutoMapper;
using Forest.Cat.Domain.Entities;
using Forest.Cat.Admin.Models;
using Forest.Cat.Admin.Models.CoverLetters;

namespace Forest.Cat.Admin.Infrastructure {
    public class AutoMapperStartupTask : IStartupTask {
        public void Execute() {

            #region CoverLetters
            Mapper.CreateMap<CoverLetter, CoverLetterModel>();
            //.ForMember(dest => dest.Title, mo => mo.Ignore())
            //.ForMember(dest => dest.Body, mo => mo.Ignore())       
            Mapper.CreateMap<CoverLetterModel, CoverLetter>();
            #endregion

            #region ...
            #endregion
        }


        public int Order {
            get { return 0; }
        }
    }
}